<script type="text/javascript">
	function freeProductPrev(number){
	
		var prev = <?php echo $curPage; ?> - number;
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listExchang/"+<?php echo $user_id; ?>+"/"+prev;
		doPost(url,'','productExchangDiv');
	}

	function freeProductNext(number){
		var next = <?php echo $curPage; ?> + number;
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listExchang/"+<?php echo $user_id; ?>+"/"+next;
		doPost(url,'','productExchangDiv');		
	}
	function freeProductFirst(){
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listExchang/"+<?php echo $user_id; ?>+"/1";
		//alert(url);
		doPost(url,'','productExchangDiv');		
	}
	function freeProductLast(){
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listExchang/"+<?php echo $user_id; ?>+"/100000";
		doPost(url,'','productExchangDiv');		
	}
</script>
<table border="0" align="center" cellpadding="0" cellspacing="1" class="list" >
 <tr>
       <td align="center"  > 产品ID</td>
		<td align="center"  >产品图片 </td>
		<td align="center"  >兑换时间</td>
		<td align="center"  > 产品描述 </td>
		<td align="center"  >市值 </td>
		<td align="center"  >备注</td>
		<td align="center"  >修改备注 </td>
		
</tr>
<?php if(isset($productApplyList) && !empty($productApplyList)){ ?>
<?php foreach($productApplyList as $key=>$profiles){ ?>

 <tr>
       <td align="center"  > <?php echo $profiles['apply']['product']?>　 </td>
       <td align="center" ><img src="<?php echo SystemProperties::$path.$profiles['apply']['g_img']?>" width="70" height="50" /></td>
       <td align="center" ><?php echo date('Y-m-d',strtotime($profiles['apply']['g_time']));?></td>
       <td align="center" ><?php echo $profiles['apply']['g_message']?></td>
       <td align="center" ><?php echo $profiles['apply']['g_jiazhi']?></td>
       <td align="center" ><?php echo $toolTip->truncate($profiles['apply']['remark'],10);?></td>
       <td align="center"><a href="<?php echo SystemProperties::$app_host;?>/user/modifyMark/<?php echo $profiles['apply']['g_id']?>/<?php echo $profiles['apply']['user_id']?>/0" >修改</a>&nbsp;&nbsp;</td>
</tr>
	
	<?php }?>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<?php if(!empty($productApplyList)){ ?>
            <tr>
    	<td colspan="12"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="page">
      <tr>
        <td width="30%"></td>
       <td width="70%" align="center">
        <div class="div1"><ul class="d4"><li class="f"><a href="javascript:freeProductFirst();">首页</a></li><li title="上一页"><a href="javascript:freeProductPrev(1);">上一页</a></li><li title="上十页"><a href="javascript:freeProductPrev(10);"><<</a></li><li class="c"><?php echo $curPage;?>/<?php echo $totalPage;?></li><li title="下十页"><a href="javascript:freeProductNext(10);">>></a></li><li title="下一页"><a href="javascript:freeProductNext(1);">下一页</a></li><li class="l"><a href="javascript:freeProductLast();">尾页</a></li></ul></div><div class="div1"><ul class="s2"><li></li></ul></div>        </td>
      </tr>
          <?php } ?>
	</table>

	<?php } ?>
